package com.yudaxian.sys.service.impl;

import com.yudaxian.sys.entity.Alarm;
import com.yudaxian.sys.entity.Alarm;
import com.yudaxian.sys.mapper.AlarmMapper;
import com.yudaxian.sys.service.IAlarmService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yudaxian
 * @since 2023-12-07
 */
@Service
public class AlarmServiceImpl extends ServiceImpl<AlarmMapper, Alarm> implements IAlarmService {



    @Override
    public Alarm getAlarmById(Integer id) {
        return this.baseMapper.selectById(id);
    }

    @Override
    public void addAlarm(Alarm alarm) {
        this.baseMapper.insert(alarm);
    }

    @Override
    public void updateAlarm(Alarm alarm) {
        this.baseMapper.updateById(alarm);
    }

    @Override
    public void deleteAlarmById(Integer id) {
        this.baseMapper.deleteById(id);
    }
    
}
